import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.io.IOException;

/**
 * Created by mo.fei on 2015/9/28.
 */
public class FilmDetailBt {
    public void getDownloadUrl() throws IOException {
        Document doc = Jsoup.connect("http://www.bttt8.com/down.php?23f8Vq64zteDu5c6N412DUYi4vTDWTeVAE5LkW13ycYI79xjOQYEonRKG4G1qF1+UoIzi3jXvJB6GXXg5nsWlbfShioKhq/8yzxmcYcEFbTK/7vjorvzY51kDcM64GpDNVntYifl17M3UI1pIagvyySoVYdkwhF5rc61uWuGjni0CLg3PkRDrce+hRcq6eEOgg/709fxPzcMWXVk+204pjTCrpZRrgM8T4QV/YE456RBz23SHi4u2orewBEF/3QF85OqbXUN7unoLg17IHnADxaDuyIyZdQTB3vd7p6XhC3kkJoS5qRiBVQ/5rt3yPIcRV9FnYHsYlVFeDI6xhpFkzcTG92Bz+1TuakMWgB/aeOu8bCKUCRw+DVHUR1Dt0JJL5j2+Zv8mW86awXtzdzf/zIt98VCgtBaoA").header("Referer","http://www.bttt8.com/torrent/office_2015.html").get();
        Elements links = doc.select("a");
        for (Element link : links) {
            System.out.println("name:"+link.text()+",href:"+link.attr("href"));
        }
    }

    public static void main(String[] args) throws IOException {
        FilmDetails details=new FilmDetails();
        details.getDownloadUrl();
    }
}
